Skip to main content

Other Project Files

Install Custom NPM Packages

You can add npm packages to your app using external.package.json. Client-side packages should go in the web object, and server-side packages should go in the node object. Use the same syntax as package.json dependencies.

Custom Cloud Functions

You can add custom Cloud Functions in functions/src/index.ts.

Use this to add custom server operations to your app.

Custom Firebase Extensions

In addition to Cloud Functions above, you can add Firebase Extensions to extend your app's server functionality.

Tests

You can write tests for your app in the tests direcory. Tests are powered by Vitest.

AI Prompt Customization

You can customize the system prompt used for your app's AI chat at functions/prompts/chat.prompt.

Custom Firestore Security Rules

You can add custom Firestore Security Rules in firebase-rules/firestore.custom.rules.

Run Data Operations

You can use the ops.js file to run back-end operations on your data.

Remote Config

You can configure Firebase Remote Config using remoteconfig.template.json.

Modify Admin UI Headers

You can edit the headers (including CSP) for the Admin UI app in firebase.hosting.json.

Migration Logs

A record of migration operations for schema updates can be found in the .migration directory.

Cloud IDE

You can use GitHub Codespaces to develop your app.

Config is found in the .devcontainer directory.